{include file="admin/inc/header.tpl"}

<div id="content">

You are here:
<div id="underlinemenu">
<ul>
<li><a href="/admin/userlist/">User list -></a></li>
<li><a href="/admin/userlist/all/">all -></a></li>
<li><a href="">Profile of user #{$user.user_id}</a></li>
</ul>
</div>	

<table id="mytable2" cellspacing="0">
  	<tr>
  	<th scope="col" height="10">Nick name</th>
    <th class="specalt">{$user.user_login}</th>
	</tr>
	<tr>
  	<th scope="col">Avatar</th>
    <th class="spec"><img height="200" width="200" src="{$user.user_path}/{$user.user_avatar|default:no}"></th>
	</tr>
	<tr>
	<th scope="col">Online status</th>
	<th class="specalt">{if $user.user_active==1}<div id="online">Online</div>
		{else}<div id="offline">Offline</div>{/if}</th>
	</tr>
	<tr>
	<th scope="col">Block</th>
	<th class="spec">
		{if $user.user_block|count == 0}NO | <a href = "/admin/userlist/block/{$user.user_id}/">block this user</a>
		{else}<div id="offline">till {$user.user_block}</div> <a href = "/admin/userlist/unblock/{$user.user_id}/">unblock this user</a>{/if}</th>
	</tr>
	<tr>
	<th scope="col">Phone num.</th>
	<th class="specalt">{$user.user_number}</th>
	</tr>
	<tr>
	<th scope="col">E-mail</th>
	<th class="spec">{$user.user_mail}</th>
	</tr>
	<tr>
	<th scope="col">Sex</th>
	<th class="specalt">{$user.user_sex}</th>
	</tr>
	<tr>
	<th scope="col">Country</th>
	<th class="spec">{$user.user_country}</th>
	</tr>
	<tr>
	<th scope="col">City</th>
	<th  class="specalt">{$user.user_city}</th>
	</tr>
	<tr>
	<th scope="col">Description</th>
	<th class="spec">{$user.user_description}</th>
	</tr>
	<tr>
	<th scope="col">Created</th>
	<th class="specalt">{$user.user_created}</th>
	</tr>
	<tr>
	<th scope="col">Updated</th>
	<th class="spec">{$user.user_updated}</th>
  </tr>
  <tr>
	<th scope="col">Abused</th>
	<th class="spec">{$user.abuse_count}</th>
  </tr>
  <tr>
	<th scope="col">Rating</th>
	<th class="spec">{$user.user_rating}
			<a href="/admin/userlist/increase/{$user.user_id}/">shuld be on "most rated" page</a></th>
  </tr>
  <tr>
	<th scope="col">Show on main page</th>
	<th class="spec">{if $user.user_show_on_home==0}No{else}Yes{/if}
			<a href="/admin/userlist/showonhome/{$user.user_id}/">change status</a></th>
  </tr>
</table>
{if $user.abuse_count > 0}
<table id="abusetable">
	
	<tr>
	<td class="spec">Abuse from</th>
	<td class="spec">Abuse reason</th>
	</tr>
	{foreach from=$abuses item=i name=foo}
	<tr>
	<td {if $smarty.foreach.foo.index%2==0} class="specalt"{else} class="spec"{/if}>
		<a href="/admin/userlist/profile{if $i.user_password==''}guest{/if}/{$i.user_id}/">{$i.user_login}
	</td>
	<td {if $smarty.foreach.foo.index%2==0} class="specalt"{else} class="spec"{/if}>
		{$i.abuse_reason}
	</td>
	</tr>
	{/foreach}
</table>
{/if}

<div class="side-col last">

<div class="action add" id="add_flow">
			<a href="/admin/userlist/all/">Back to user list</a>
</div>
</div>
<!-- content-->
</div>
